package MazeGenProject;

import java.io.Serializable;
import java.util.*;

public class Room implements Serializable
{
	public Wall north, east, south, west; 
	public int x, y; 
	public List<Room> adj; 
	public int roomName; //Current room index
	public Room prev; //Previous room
	public boolean solution;

	public Room(int x, int y) 
	{
		this.x = x;
		this.y = y;
		adj = new LinkedList<Room>();
		prev = null;
		roomName = 0;
		solution = false;
	}

	public int getRoomName() 
	{
		return roomName++;
	}
	
	public void solve()
	{
		solution = !solution;
	}

}